Skip to content

pickconfig: scale row height according to current font height#4010

Merged
andypugh merged 2 commits intoLinuxCNC:masterfrom
hansu:fix-dpi-scaling-of-pickconfig
May 7, 2026
Merged

pickconfig: scale row height according to current font height#4010
andypugh merged 2 commits intoLinuxCNC:masterfrom
hansu:fix-dpi-scaling-of-pickconfig

Conversation

@hansu
Copy link
Copy Markdown
Member

@hansu hansu commented May 7, 2026

Fixes #2398

Currently the row height of the treeview is fixed at ca. 15 px. With a higher DPI setting, the text overlaps. This sets a row height according to the font height.

Having a closer look at the current state, the text also overlaps with normal dpi scaling:

grafik

Default setting (96 DPI):
grafik

192 DPI:
grafik

hansu added 2 commits May 7, 2026 14:13
Before this, the row height of the treeview was fixed at ca. 15 px. With a higher DPI setting, the text overlaps. This sets a row height according to the font height.
@andypugh andypugh merged commit 04a47d9 into LinuxCNC:master May 7, 2026
15 checks passed
@hansu hansu deleted the fix-dpi-scaling-of-pickconfig branch May 7, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The list box of the configuration selector appears squashed on a HiDPI display.

2 participants